// import Vue from 'vue'
import { createRouter, createWebHistory } from 'vue-router'
import LoginView from '../views/LoginView.vue'
// Vue.use(Router)
// import LayoutWd from '../layout/index.vue'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      redirect: '/login',
      component: LoginView
    },
    {
      path: '/login',
      name: 'login',
      component: () => import('../views/LoginView.vue')
    },
    {
      path: '/register',
      name: 'register',
      component: () => import('../views/RegisterView.vue')
    }
    // {
    //   path: '/home',
    //   name: 'jk',
    //   component: LayoutWd,
    //   meta: { title: '系统管理' },
    //   children: [
    //     {
    //       path: 'role',
    //       component: () => import('../views/System/Role/index.vue'),
    //       meta: { title: '角色管理' }
    //     }
    //   ]
    // }
  ]
})

export default router
